package day0628;

//引入  文件夹.Arrays文件
import java.util.Arrays;

public class Test1 {
    public static void main(String[] args) {
        int[]  is={7};
        is=Arrays.copyOf(is  ,is.length+1);
        System.out.println(is[0]+"--"+is[1]);


        char[]   as={'a',  'c',  'x'};
        //2个元素
        char[]   bs=Arrays.copyOf(as,2);
        System.out.println(bs[0]+"--"+bs[1]);
        String str=Arrays.toString(bs);
        System.out.println(str);

        String s2=Arrays.toString(as); //"acx"
        System.out.println(s2);
    }
}






